* (bug 24155) Import no longer produces errors with php 5.2 and before
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 28 Jun 2010 17:51:49 +0000 (17:51 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 28 Jun 2010 17:51:49 +0000 (17:51 +0000)
includes/ImportXMLReader.php
includes/specials/SpecialImport.php

index 06f2157..ebfb12a 100644 (file)
@@ -174,7 +174,8 @@ class WikiImporter {
         * Mostly for hook use
         */
        public function finishImportPage( $title, $origTitle, $revCount, $sRevCount, $pageInfo ) {
-               return wfRunHooks( 'AfterImportPage', func_get_args() );
+               $args = func_get_args();
+               return wfRunHooks( 'AfterImportPage', $args );
        }
 
        /**
@@ -213,7 +214,8 @@ class WikiImporter {
         */
        private function pageOutCallback( $title, $origTitle, $revCount, $sucCount, $pageInfo ) {
                if( isset( $this->mPageOutCallback ) ) {
-                       call_user_func_array( $this->mPageOutCallback, func_get_args() );
+                       $args = func_get_args();
+                       call_user_func_array( $this->mPageOutCallback, $args );
                }
        }
        
index 9abdb30..d562fa4 100644 (file)
@@ -304,7 +304,8 @@ class ImportReporter {
        function reportPage( $title, $origTitle, $revisionCount, $successCount ) {
                global $wgOut, $wgUser, $wgLang, $wgContLang;
                
-               call_user_func_array( $this->mOriginalPageOutCallback, func_get_args() );
+               $args = func_get_args();
+               call_user_func_array( $this->mOriginalPageOutCallback, $args );
 
                $skin = $wgUser->getSkin();